package com.jinzhinyun4j.spring.action;

import com.jinzhinyun4j.spring.User;
import com.jinzhinyun4j.spring.service.IUserService;
import com.jinzhinyun4j.spring.service.UserService;

public class UserAction {
	
	private IUserService userService;
	private User  user ;
	private int id;
	public void add(){
		userService.add(user);
			
	}
	public void delete(){
		userService.delete(id);
	}
	public void load(){
		
		userService.load(id);
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public IUserService getUserService() {
		return userService;
	}
	public void setUserService(IUserService userService) {
		this.userService = userService;
	}
}
